package org.tinygroup.channel.protocol;

import org.tinygroup.context.Context;

public interface ProtocolTrans<ReqMessage,Req, RespMessage,Resp> {
	Req transReqFromMessage(ReqMessage reqMessage, Context context);
	ReqMessage transReqToMessage(Req req, Context context);

	RespMessage transRespToMessage(Resp resp, Context context);
	Resp transRespFromMessage(RespMessage respMessage, Context context);
	
}
